package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.motong.gongdan.vo.system.common.vo.CheckBox;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * @author:fff
 * @time:2022/4/12
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName(value = "custom_field")
public class CustomField extends PublicPo{
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name;
    @TableField("chinese_name")
    private String chineseName;
    @TableField("field_type")
    private String fieldType;
    @TableField("scan_code_input")
    private boolean scanCodeInput;
    @TableField("modify_scan_result")
    private boolean modifyScanResult;
    private String hidden;
    @TableField("field_attribute")
    private String fieldAttribute;
    @TableField("guide_text")
    private String guideText;
    private String tips;
    @TableField("check_box")
    private String checkBox;
    @TableField("create_time")
    private Date createTime;
    @TableField("create_id")
    private Integer createId;
    @TableField("update_time")
    private Date updateTime;
    @TableField("field_ascription")
    private String fieldAscription;
    @TableField("business_object")
    private String businessObject;
    @TableField("show_field")
    private String showField;
    @TableField("fill_rule")
    private String fillRule;
    @TableField("show_accuracy")
    private String showAccuracy;
    @TableField("object_field_id")
    private Integer objectFieldId;
    @TableField("correlation_field")
    private String correlationField;

    @TableField(exist = false)
    private String createName;

    @TableField("in_use")
    private Integer inUse;
    private Integer sort;

    @TableField("formula")
    private String formula;

    @TableField(exist = false)
    @ApiModelProperty("是否必填 0 否 , 1 是")
    private Integer isRequired;

    @TableField(exist = false)
    private List<CheckBox> fieldValue;
}
